how to reverse array of object

62

var x = [{"score":1},{"score":2},{"score":3}]
console.log(x);
var y = [...x].reverse();
console.log(y);

Comments

Submit
0 Comments